<%@page import="multiface.awwadco.jpa.Utente"%>
<%
    Utente ut = (Utente) session.getAttribute("admin");
    if (ut == null) {
        response.sendRedirect(multiface.web.util.ServletUtils.getBaseUrl(request) + "/admin/index.jsp?err=y");
    }
%>

<div class="title">Commands</div>
<ul>
    <li id="new_prod"><a href="javascript:open('add_part.jsp')">New Part</a></li>
</ul>
<div class="title">Search Part</div>
<ul>
    <label for="search">Code or Name</label>
    <input class="input-search" name="search" id="search" type="text" value="<%=request.getParameter("text")!= null ? request.getParameter("text") : ""%>"/>
</ul>

<script>
    $("#search").keyup(function () {
        search('list_part.jsp',{},'center');
    });
</script>